package com.slkj.shilixiaoyuanapp.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * Created  on 2018-09-07
 *
 * @author 唐开阔
 * @describe 考勤打卡列表实体
 */
public class StudentAttendanceListEntity implements MultiItemEntity {
    public static final int TYPE_LEAVE = 1;
    public static final int TYPE_KQ = 2;
    private boolean isLeave;//是否是请假
    private boolean isOpen = false;
    public StudentAttendanceListEntity(boolean isLeave) {
        this.isLeave = isLeave;
    }

    @Override
    public int getItemType() {
        return isLeave?TYPE_LEAVE:TYPE_KQ;
    }

    public boolean isLeave() {
        return isLeave;
    }

    public void setLeave(boolean leave) {
        isLeave = leave;
    }

    public boolean isOpen() {
        return isOpen;
    }

    public void setOpen(boolean open) {
        isOpen = open;
    }
}
